|
Veja também |
---|
Sketch → Sketcher constraints → Constrain perpendicular |
Bancadas de trabalho |
Sketcher, PartDesign |
Atalho padrão |
N |
Introduzido na versão |
- |
Veja também |
Constraint Angle |
The Sketcher ConstrainPerpendicular tool constrains two lines to be perpendicular, or two edges, or an edge and an axis, to be perpendicular at their intersection. Lines are treated as infinite, and open curves are virtually extended as well. The constraint can also connect two edges, forcing them to be perpendicular at the joint.
See also: Drawing aids.
The two edges are made perpendicular at their (virtual) intersection. If one of the edges is a conic, a Point object that has a Point on object constraint with both (extended) edges is added.
The endpoints are made coincident, and the edges are made perpendicular at that point.
The endpoint of one edge is constrained to lie on the other edge, and the edges are made perpendicular at that point.
The two edges are made perpendicular at a given point. The point can be any point, e.g. the center of a circle, the endpoint of an edge, or the origin, it can belong to one of the edges, and it can also be a Point object. If required Point on object constraint(s) are added to ensure the point lies on both (extended) edges. These additional constraints are called helper constraints.
Perpendicular Constraint can be created from macros and from the python console by using the following:
# direct perpendicularity
Sketch.addConstraint(Sketcher.Constraint('Perpendicular',icurve1,icurve2))
# point-to-point perpendicularity
Sketch.addConstraint(Sketcher.Constraint('Perpendicular',icurve1,pointpos1,icurve2,pointpos2))
# point-to-curve perpendicularity
Sketch.addConstraint(Sketcher.Constraint('Perpendicular',icurve1,pointpos1,icurve2))
# perpendicular-via-point (plain constraint, helpers are not added automatically)
Sketch.addConstraint(Sketcher.Constraint('PerpendicularViaPoint',icurve1,icurve2,geoidpoint,pointpos))
where:
Sketch
is a sketch objecticurve1
, icurve2
are two integers identifying the curves to be made perpendicular. The integers are indexes in the sketch (the value, returned by Sketch.addGeometry
).pointpos1
, pointpos2
should be 1
for start point and 2
for end point.geoidpoint
and pointpos
in PerpendicularViaPoint are the indexes specifying the point of perpendicularity.The Sketcher scripting page explains the values which can be used for icurve1
, icurve2
, pointpos1
, pointpos2
and geoidpoint
, and contains further examples on how to create constraints from Python scripts.